package com.hsd.whb.repository;

import com.hsd.whb.entity.Device;
import com.hsd.whb.entity.Manager;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface DeviceRepository extends JpaRepository<Device, Integer> {

    Device findByAccessKey(String accessKey);

    List<Device> findByManagerIdAndDeleted(Integer managerId, Integer deleted);

}
